﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _443_Server
{
	public class Location
	{
		public int X { get; set; }
		public int Y { get; set; }
		public int H { get; set; }

		public int RegionX { get { return X >> 3; } set { X = value << 3; } }
		public int RegionY { get { return Y >> 3; } set { Y = value << 3; } }

		public int LocalX { get { return X - 8 * (RegionX - 6); } }
		public int LocalY { get { return Y - 8 * (RegionY - 6); } }

		public Location(int x, int y)
		{
			X = x;
			Y = y;
			H = 0;
		}
	}
}
